package com.moyun.finance.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.List;

/**
 * 报销单实体类
 */
@Entity
@Data
public class Reimbursement {
    @Id
    private String id;

    private String companyId;//关联公司id

    private String userId;//报销人id

    private double money;//报销金额

    private double alreadyMoney;//已报销金额

    private double surplusMoney;//剩余报销金额

    private String remark;//备注

    private String date;//报销提交时间

    private String projectId;//关联项目ID

    private int state;//状态 0:未报销  1:已报销

    private String accountId;//支出账户id

    private String transactorId;//办理人id

    private String alreadyDate;//报销办理时间

    @Transient
    private Projects projects;//关联项目对象

    @Transient
    private OrgUser user;//报销人

    @Transient
    private List<ReimbursementDetailed> reimbursementDetaileds;//报销明细列表

    @Transient
    private Account account;//支出账户

    @Transient
    private OrgUser transactor;//办理人
}